<?php
// test_user数据表代码生成配置文件
return
[
    'menuPid'=>99,
    'table'=>'log_role_death',// 基于此表构建 代码
    'modelName'=>'LogRoleDeath',//模块名
    'modelShowName'=>'角色死亡日志',//HTML页面 显示的功能名称,例如: 订单, 相关名称有订单添加,订单编辑,订单删除,订单列表,订单管理, 同时,php代码中会有注释
    //字段处理
    "fields"=>
    [
        ['field'=>'logTime','type'=>'int','title'=>'生成时间时间戳'],
        ['field'=>'line','type'=>'int','title'=>'所在线' ],
        ['field'=>'serverId','type'=>'int','title'=>'所在服务器ID' ],
        ['field'=>'memId','type'=>'int','title'=>'账号ID' ],
        ['field'=>'roleId','type'=>'int','title'=>'角色ID' ],
        ['field'=>'nick','type'=>'varchar','title'=>'角色昵称'],
        ['field'=>'kill_type','type'=>'radio','title'=>'击杀者类型','values'=>[['value'=>1,'title'=>'玩家'],['value'=>0,'title'=>'NPC']],'default'=>0],
        ['field'=>'kill_id','type'=>'int','title'=>'击杀者ID'],
        ['field'=>'kill_nick','type'=>'varchar','title'=>'击杀者名称'],
        ['field'=>'map_id','type'=>'int','title'=>'场景ID'],
    ],
    'functions'=> //功能
    [
        ['name'=>'model','path'=>'app/Models'],
        ['name'=>'dto','path'=>'app/DTOS/Admin','dtoList'=>[ 'searchDTO']],
        ['name'=>'service','path'=>'app/Services','methods'=>['paginate','insert','updateById','deleteById','deleteByIds','getById']],
        ['name'=>'controller','path'=>'app/Http/Controllers/Admin','methods'=>['paginate']],
        ['name'=>'layuiAdminPage',
            'output'=>'/code/xm2-admin/page/log/logRoleDeath',
            'pages'=>
            [

                ['page'=>'index','functions'=>[]],
            ]
        ],
        ['name'=>'route'],
        ['name'=>'menu','functions'=>[ 'paginate' ]],
    ],
];
